#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main()
{
	int arr[] = { 1,1,3,3,5,6,6,7,9,9 };
	int ret = 0;
	int num1 = 0;
	int num2 = 0;
	int sz = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0;i < sz;i++)
	{
		ret ^= arr[i];
	}
	int count = 0;
	for (int i = 0;i < 31;i++)
	{
		if (((ret >> i) & 1 )!= 0)
		{
			count = i;
			break;
		}
	}
	for (int i = 0;i < sz;i++)
	{
		if (((arr[i] >> count) & 1) == 0)
		{
			num1 ^= arr[i];
		}
		else
		{
			num2 ^= arr[i];
		}
	}
	printf("%d %d", num1, num2);
	return 0;
}